package com.jyl.spzx.cloud.user.service.impl;

import com.jyl.spzx.cloud.user.bean.User;
import com.jyl.spzx.cloud.user.mapper.UserMapper;
import com.jyl.spzx.cloud.user.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @ClassName UserServiceImpl
 * @Author admin
 * @Date 2024/7/1
 */
@Service
@RequiredArgsConstructor
public class UserServiceImpl implements UserService {

    private final UserMapper userMapper;

    @Override
    public User findUserByUserId(Long userId) {
        return userMapper.getUserById(userId);
    }
}
